/**
 * @author        Nicolas Bottarini <nicolasbottarini@gmail.com>, 404 <http://www.proyecto404.com>
 * @version       $Rev: 3 $
 * @lastrevision  $Date: 2011-09-12 16:45:37 +0000 (Mon, 12 Sep 2011) $	 
 */
package com.proyecto404.core.mvc {
	import com.proyecto404.core.BaseObject;
	import com.proyecto404.core.util.StringHelper;
	
	public class ViewInfo extends BaseObject {
		private var _name:String;
		private var _className:String;
		private var _file:String;
		private var _preloadedWith:String;
		
		public function ViewInfo(name:String, className:String, file:String, preloadedWith:String) {
			super();
			_name = name;
			_className = className;
			_file = file;
			if (StringHelper.isNullOrEmpty(preloadedWith)) {
				_preloadedWith = "main";
			} else {
				_preloadedWith = preloadedWith;
			}
		}
		
		public function get name():String {
			return _name;
		}

		public function get className():String {
			return _className;
		}

		public function get file():String {
			return _file;
		}

		public function get preloadedWith():String {
			return _preloadedWith;
		}
	}
}
